if(MVM)
	include_directories(../../mvm/include)

    add_definitions(-DUSE_THREADS=false)
	add_definitions(-DBUGDEGREE=Degree::LOW)

	add_executable(tb_memory tb_memory.cpp)
	target_link_libraries(tb_memory mvm-lib pthread)
	if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
		verilate(
			tb_memory
			SOURCES
			${PROJECT_SOURCE_DIR}/mvm/design/Memory/memory.sv
			TOP_MODULE
			memory
			COVERAGE
			OPT_SLOW
			TRACE)
	else()
		verilate(
			tb_memory
			SOURCES
			${PROJECT_SOURCE_DIR}/mvm/design/Memory/memory.sv
			TOP_MODULE
			memory
			COVERAGE
			OPT_FAST
			TRACE)
	endif()

endif()
